package com.qf.administration.service;

import com.github.pagehelper.PageInfo;
import com.qf.administration.qo.DriverManageQO;
import com.qf.administration.vo.DriverManageVO;
import com.qf.common.base.result.RespResult;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title: DriverManageService
 * @Description:
 * @author:ZWX
 * @date: 2023/5/24 17:48
 */
public interface DriverManageService {
    //添加司机信息
    RespResult<String> addDriver(DriverManageQO driverManageQO);

    //批量删除司机信息
    RespResult<String> deleteDriver(@RequestParam int[] ids);

    /*删除单个司机信息*/
    RespResult<String> deleteOneDriver(@RequestParam int vehileId);

    //修改车辆信息(根据id进行一条信息修改)
    RespResult<String> updateDriver(DriverManageQO driverManageQO);

    //分页查询
    PageInfo<DriverManageVO> queryDriver(@RequestParam(defaultValue = "1") int page, @RequestParam(defaultValue = "10") int size, @RequestParam(required = false) String workType, @RequestParam(required = false) String username, @RequestParam(required = false) String sex, @RequestParam(required = false) String driverNumber, @RequestParam(required = false) String busNumber);

    //通过id查询单条信息
    DriverManageVO queryDriverOne(int id);
}
